<!DOCTYPE html>
<html lang="zh-cn">
	<head>
	    <meta charset="utf-8">
	   	<title>HTML TEMP </title>
	   	<script type="text/javascript" src="jquery-1.11.1.min.js"></script>
	</head>
	<body>
		<input id="text1" type="text" >
		<input id="copyBtn" type="button" value="copy">
		<input id="text2" type="text" >
		<script type="text/javascript">
			jQuery(document).ready(function($) {
			//---------begin------------------
				$('input#copyBtn').click(function(event) {
					$('#text2').val($('#text1').val());
				});
			//---------end------------------
			});
		</script>
	</body>
</html>